import request from '@/utils/request'

// 获取通告列表数据
export function notificationList() {
    return request({
        url: '/wechat/notification/list',
        method: 'get',
    })
}

// 通告已读处理
export function notificationRead(notificationId) {
    return request({
        url: `/wechat/notification/read/${notificationId}`,
        method: 'put',
    })
}

// 通告全部已读处理
export function notificationReadAll() {
    return request({
        url: '/wechat/notification/read/all',
        method: 'put',
    })
}

// 获取通告未读数量
export function notificationUnreadCount() {
    return request({
        url: '/wechat/notification/unread/count',
        method: 'get',
    })
}


